{include "header.tpl"}

<link href="/css/bootstrap-switch.min.css" rel="stylesheet" media="screen">
<script src="/js/bootstrap-switch.min.js"></script>
<link rel="stylesheet" href="/css/skins/square/blue.css"/>
<script src="/js/icheck.min.js"></script>

<form id="domainForm" rel="ajax" method="post" action="/adminmall/Goods/categoryModify" enctype="multipart/form-data" class="form-horizontal" role="form" onsubmit="domainSubmit()">

    <div class="form-group form-group-sm">
        <label for="" class="col-sm-3 control-label">系列名称:</label>
        <div class="col-sm-5">
            <input type="text" id="name" name="name" value="{$data.name}" class="form-control" required/>
        </div>
    </div>

    <div class="form-group form-group-sm">
        <label for="" class="col-sm-3 control-label">图标:</label>
        <div class="col-sm-5">
            {if $data.icon neq ""}<img src="{$oss_url}{$data.icon}">{/if}
            <input type="file" id="icon" name="icon">
            <input style="display: none" type="text" id="icon_t" name="icon_t" value="{$data.icon}" class="form-control" />
        </div>
    </div>

    <div class="form-group form-group-sm">
        <label for="" class="col-sm-3 control-label">排序值:</label>
        <div class="col-sm-5">
            <input type="text" id="paixu" name="paixu" value="{$data.paixu}" class="form-control" required/>
        </div>
    </div>

  {*  <div class="form-group form-group-sm">
        <label for="" class="col-sm-3 control-label">手机:</label>
        <div class="col-sm-5">
            <input type="text" id="cell_phone" name="cell_phone" value="{$data.cell_phone}" class="form-control" required/>
        </div>
    </div>*}

    {*<div class="form-group form-group-sm">
        <label for="" class="col-sm-3 control-label">状态:</label>
        <div class="col-sm-5">
            <label><input type="radio" value="1" name="status" {if $data.status eq 1} checked{/if}> 正常</label>
            <label><input type="radio" value="2" name="status" {if $data.status eq 2} checked{/if}> 禁用</label>
            <label><input type="radio" value="3" name="status" {if $data.status eq 3} checked{/if}> 删除</label>
        </div>
    </div>*}

    <div class="form-group form-group-sm">
        <label for="" class="col-sm-3 control-label">&nbsp;</label>
        <div class="col-sm-3">
            <input type="hidden" name="id" value="{$smarty.get.id}"/>
            <button type="submit" class="btn btn-primary">提交</button>
        </div>
    </div>
</form>

<script type="text/javascript">


</script>
{include "footer.tpl"}